package com.gxa.saas.portal.service.impl;

import com.gxa.saas.portal.entity.vo.wylvo.OrderListVo;
import com.gxa.saas.portal.mapper.WGoodsMapper;
import com.gxa.saas.portal.mapper.WHomeMapper;
import com.gxa.saas.portal.service.WHomeService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class WHomeServiceImpl implements WHomeService {

    @Resource
    private WHomeMapper wHomeMapper;

    @Override
    public List<OrderListVo> selectOrderList(Integer id) {
        List<OrderListVo> list = wHomeMapper.selectOrderList(id);
        return list;
    }

    @Override
    public Integer selectWeekOrder(Integer id) {
        Integer weekOrder = wHomeMapper.selectWeekOrder(id);
        return weekOrder;
    }

    @Override
    public Integer selectMonthOrder(Integer id) {
        Integer monthOrder = wHomeMapper.selectMonthOrder(id);
        return monthOrder;
    }

    @Override
    public Integer selectCountOrder(Integer id) {
        Integer countOrder = wHomeMapper.selectCountOrder(id);
        return countOrder;
    }

    @Override
    public Integer selectPSOrder(Integer id) {
        Integer psOrder = wHomeMapper.selectPSOrder(id);
        return psOrder;
    }


}
